import {defineStore} from "pinia";

const useLoadingStore = defineStore("loading", {
    state: () => ({
        loading: false
    }),
    actions: {
        setLoading(loading: boolean) {
            this.loading = loading
        },
        getLoading() {
            return this.loading
        }
    }
})

export default useLoadingStore